package com.netdisk.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * 收藏实体类
 */
@Data
@TableName("favorites")
@ApiModel(value = "收藏实体", description = "收藏信息")
public class Favorite {

    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value = "收藏ID")
    private Integer id;

    @ApiModelProperty(value = "用户ID")
    private Integer userId;

    @ApiModelProperty(value = "文件ID")
    private Integer fileId;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createdAt;
} 